<include file="Public/header"/> 
<!-- start: Content -->
<div id="content" class="span10">
    <!--面包屑开始-->
    <ul class="breadcrumb">
        <li>
            <i class="icon-home"></i>
            <a href="index.html">主页</a> 
            <i class="icon-angle-right"></i>
        </li>
        <li><a href="#re">科目管理</a></li>
    </ul>
    <!--面包屑结束-->
    <div class="row-fluid">
        <div class="box span12">
            <div class="box-header" data-original-title>
                <h2><i class="halflings-icon edit"></i><span class="break" style="font-size: 14px; font-weight: bold;">添加科目:</span> </h2>
            </div>
     <div class="row-fluid">
        <div class="box span12">
          <div class="box-content">
             
            <div id="myTabContent" class="tab-content">
              <div class="tab-pane active" id="info">
                <p>
                 <div id="form_question_type_b"  style="display: block;">
                 <form action="__APP__/Home/Index/add" method="post" style="border: 1px solid #ccc;"  />
                   <dl style="margin: 0  0 0 200px;">
                    <div class="control-group">
                        <label class="control-label" for="inputEmail">科目名:</label>
                        <div class="controls">
                          <input type="text" id="name" name="name">
                    </div>
                        <dt><label class="form-title" for="solve_images_add" >图片url:</label>
                        <input type="texr" readonly="true" id="news_img" name="image_url" />  <input value="点击上传图片" onclick="upImage();" type="button"/>
                        </dt>

                           <input type="submit" value="添加" style="margin: 10px 0 0 0;" />
                        </dl> 
                 
                  </form>
                  </div>  
                </p>

              </div>
              <div class="tab-pane" id="custom">
          
              </div>
            </div>
          </div>
        </div><!--/span-->
      
      </div><!--/row-->     
    

  </div><!--/.fluid-container-->
    <script type="text/plain" id="j_ueditorupload" style="height:5px;display:none;" ></script>
                        <!--注册百度ueditor-->  
                            <script>
                            //实例化编辑器
                            var o_ueditorupload = UE.getEditor('j_ueditorupload',
                                    {
                                        autoHeightEnabled: false
                                    });
                            o_ueditorupload.ready(function()
                            {
                                o_ueditorupload.hide(); //隐藏编辑器
                            });
                            //监听图片上传
                            o_ueditorupload.addListener('beforeInsertImage', function(t, arg)
                            {
                                // alert('这是图片地址：' + arg[0].src);
                                $("#news_img").val(arg[0].src);
                            });
                            //弹出图片上传的对话框
                            function upImage()
                            {
                                var myImage = o_ueditorupload.getDialog("insertimage");
                                myImage.open();
                            }
                               
 



                 })

       
         </script> 
         
          <include file="Public/footer"/>   
